﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupPermision.aspx.cs" Inherits="Manage_basisset_GroupPermision" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
     
</head>
<body>
    <form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server"  EnableScriptGlobalization="True" EnableScriptLocalization="True">
        </asp:ScriptManager>
        <asp:UpdatePanel id="UpdatePanelAccount" runat="server" ChildrenAsTriggers="true"  UpdateMode="Conditional">
                    <contenttemplate>
       <table width="98%" border="0" align="center" style="margin-top:8px;display:block">
       
           <tr>

             <td>
                <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA" align="center" style="margin-top:8px">
        <tr bgcolor="#E7E7E7">
          <td height="24" colspan="5" background="../skin/images/tbg.gif"><div align="left" >
              用户组权限列表</div></td>
        </tr>
       </table>
             </td>
           </tr>
           <tr style="background-color:#ffffff">
            <td >
        <asp:GridView ID="grdvPermision" runat="server" Width="100%" CellPadding="4" BorderColor="#D1DDAA"  
                            AutoGenerateColumns="False" AllowPaging="False" PageSize="12" 
                            DataKeyNames="MenuId"  DataMember="Name" 
                    OnRowDataBound="grdvPermision_RowDataBound" GridLines="Both" 
                    onrowcommand="grdvPermision_RowCommand">
                            <Columns>
                                <asp:TemplateField HeaderText="菜单项">
                                    <ItemTemplate>
                                       <asp:Label ID="lblname" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="权限选择">
                                    <ItemTemplate>
                                      <div style="float:left; margin-right:8px"> <asp:CheckBoxList ID="ckblpermision" runat="server"  BorderStyle="None"  BorderWidth="0"  CssClass="cbox"   RepeatDirection="Horizontal"  > 
                                       </asp:CheckBoxList></div>
                                     <div style="float:left"> <asp:CheckBox ID="ckall" runat="server" Text="全部权限" 
                                             oncheckedchanged="ckall_CheckedChanged"   AutoPostBack="true"   /></div> 
                                       <asp:HiddenField ID="hdfMenuId" runat="server" Value='<%#Eval("MenuId") %>' />
                                       <asp:HiddenField ID="hdfPermisionNew" runat="server" Value='<%#Eval("NEW") %>' />
                                       <asp:HiddenField ID="hdfPermisionSelect" runat="server" Value='<%#Eval("SELECT") %>' />
                                        <asp:HiddenField ID="hdfPermisionEdit" runat="server" Value='<%#Eval("EDIT") %>' />
                                        <asp:HiddenField ID="hdfPermisionDelete" runat="server" Value='<%#Eval("DELETE") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                            </Columns>
                            <PagerSettings FirstPageText="" LastPageText="" NextPageText="" PreviousPageText="" />
                            <RowStyle Height="20px" BackColor="#FFFFFF" ForeColor="#000000" />
                            <FooterStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#FCFDEE" />
                            <SelectedRowStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="#000000" />
                            <PagerStyle BackColor="#FCFDEE" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#FCFDEE"  ForeColor="000000" />
                            <AlternatingRowStyle BackColor="#FCFDEE" ForeColor="#000000" />
                            
                        </asp:GridView>
                        </td>
                        </tr>
                       
       </table>
       </contenttemplate>
                   
                    </asp:UpdatePanel>
      <!--  提交 -->
      <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
        <tr bgcolor="#FAFAF1">
        <td height="28"  style="padding-left:10px">
           
	        <asp:CheckBox ID="chkSelect" runat="server" Text="全选" 
                oncheckedchanged="chkSelect_CheckedChanged" AutoPostBack="true" />
        </td>
        </tr>
        <tr bgcolor='#EEF4EA'>
          <td background='skin/images/wbg.gif' align='center'><table border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td align="center"><asp:Button ID="btnsave" runat="server" Text="保存" 
                       onclick="btnsave_Click" /></td>
               
              </tr>
            </table></td>
        </tr>
      </table>
    </form>
</body>
</html>
